package com.ynny.extends_.bean07;

public class PetShop {
    public void saleAnimal0(Animal animal){
        System.out.println("卖" + animal);
    }
    //卖狗 还是 卖猫
    public void saleAnimal(Cat cat){
        System.out.println("卖" + cat);
    }
    public void saleAnimal2(Dog dog){

        System.out.println("卖" + dog);
    }



}
